package com.oocl.pojo;

import java.util.Arrays;
import java.util.Date;

public class User {
	private Integer id;
	private String username;
	private double salary;
	private Date birthDate;
	private boolean sex;
	private byte[] headImage;
	
	public User() {
	}

	public User(Integer id, String username, double salary, Date birthDate,
			boolean sex) {
		super();
		this.id = id;
		this.username = username;
		this.salary = salary;
		this.birthDate = birthDate;
		this.sex = sex;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public double getSalary() {
		return salary;
	}

	public void setSalary(double salary) {
		this.salary = salary;
	}

	public Date getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}

	public boolean isSex() {
		return sex;
	}

	public void setSex(boolean sex) {
		this.sex = sex;
	}

	public byte[] getHeadImage() {
		return headImage;
	}

	public void setHeadImage(byte[] headImage) {
		this.headImage = headImage;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", username=" + username + ", salary="
				+ salary + ", birthDate=" + birthDate + ", sex=" + sex
				+ ", headImage=" + Arrays.toString(headImage) + "]";
	}

	

}
